import request from '../utils/request';
import qs from 'qs';

export async function busQuery(params) {
	return request(`/DataApi/getCount?${qs.stringify(params)}`);
}

export async function phoneQuery(params) {
	return request(`/DataApi/getUseCount?${qs.stringify(params)}`);
}

export async function weChartQuery(params) {
	return request(`/DataApi/getPhoneRegisterOrNoRegister?${qs.stringify(params)}`);
}
export async function growQuery(params) {
	return request(`/DataApi/getUserAssetCount?${qs.stringify(params)}`);
}

export async function purchaseQuery(params) {
	return request(`/DataApi/getUserPurByYearAndChanel?${qs.stringify(params)}`);
}

export async function newMatchQuery(params) {
	return request(`/DataApi/getAllConditionCount?${qs.stringify(params)}`);
}

export async function matchGrowQuery(params) {
	return request(`/DataApi/getMatchCount?${qs.stringify(params)}`);
}